import request from '@/utils/request'

// 获取员工列表信息data: {page,size}
export const getEmployees = function(data) {
    return request.get('/api/sys/user', {params: data})
}

export const delEmployee = function(id) {
    return request.delete(`/api/sys/user/${id}`)
}

// 添加请求
export const addEmploy = function(data){
    return request.post('/api/sys/user/', data)
}

// 更新员工信息
export const saveUserDetailById = function(data){
    return request.put(`/api/sys/user/${data.id}`,data)
}

export function getUserDetailById(id) {
return request({
    url: `api/sys/user/${id}`
})
}